package com.tangfuzhong.config;

import com.tangfuzhong.bean.Color;
import com.tangfuzhong.bean.ColorFactoryBean;
import com.tangfuzhong.bean.Person;
import com.tangfuzhong.bean.Red;
import com.tangfuzhong.condition.LinuxCondition;
import com.tangfuzhong.condition.MyImportBeanDefinitionRegistrar;
import com.tangfuzhong.condition.MyImportSelector;
import com.tangfuzhong.condition.WindowsCondition;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.*;

/**
 * 给容器中注册组件的方式：参考前面的02
 */

@Configuration
public class Config02_4FactoryBean {

	@Bean
	public ColorFactoryBean colorFactoryBean(){
		return new ColorFactoryBean();
	}

}
